<template>
  <div>
    <ul class="topnav" v-show="$route.meta.showNav">
      <li><router-link to="/">音乐馆</router-link></li>
      <li><router-link to="/recommend">推荐音乐</router-link></li>
      <li><router-link to="/hot">热歌榜</router-link></li>
      <li><router-link to="/search">搜索</router-link></li>
      
    </ul>
  </div>
</template>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}
div{
    width: 100%;
}
.topnav {
  position: fixed;
  // top: 84px;
  z-index: 20;
  background-color: #d8a9e3;
  width: 100vw;
  padding: 0;
  // margin-bottom: 100px;
  display: flex;
  li {
    flex: 1;
    text-align: center;
    line-height: 40px;
    list-style: none;
    a {
      color: #5e0f0f;
      display: inline-block;
      text-decoration: none;
      padding: 0px 1px;
      &.router-link-exact-active {
        color: #fff;
        font-weight: 600;
        border-bottom: 2px solid #fff;
      }
    }
  }
}
</style>